package scau.erps.view.decision.finance;

import scau.erps.app.Erps;

/**
 * 原材料原料面板
 * @author outsider
 *
 */
public class MaterialFinancePanel extends SandPanelTemplateOfFinance {

	private static final long serialVersionUID = 1L;
	public MaterialFinancePanel(){
		super();
		this.label2.setVisible(true);
		this.label2.setText("M1仓库:");
		this.textField2.setVisible(true);
		this.label3.setVisible(true);
		this.label3.setText("M2仓库:");
		this.textField3.setVisible(true);
		this.label4.setVisible(true);
		this.label4.setText("M3仓库:");
		this.textField4.setVisible(true);
		this.label5.setVisible(true);
		this.label5.setText("M4仓库:");
		this.textField5.setVisible(true);
		this.setTextFieldValue();
			
	}
	@Override
	public void setTextFieldValue() {
		this.cash.setText(Integer.toString(Erps.getSand().getCash()));	
		this.textField2.setText(Integer.toString(Erps.getStore().getM1()));
		this.textField3.setText(Integer.toString(Erps.getStore().getM2()));
		this.textField4.setText(Integer.toString(Erps.getStore().getM3()));
		this.textField5.setText(Integer.toString(Erps.getStore().getM4()));
		
		
	}
}
